package com.fundynamic.learnbydoing.designpatterns.statePattern.withPattern.service;

import com.fundynamic.learnbydoing.designpatterns.statePattern.withPattern.domain.RegistrationState;
import com.fundynamic.learnbydoing.designpatterns.statePattern.withPattern.domain.User;

public class RegistrationServiceExampleImpl implements
		RegistrationServiceExample {

	@Override
	public void updateUserRegistrationState(User user) {
		// you might even wonder why we still have an interface to update the state...
		RegistrationState registrationState = user.getRegistrationState();
		registrationState.update();
	}
}
